public class BeijingDuck extends Duck {

    public BeijingDuck(String name) {
        super(name);
        flyBehavior = new GoodFly();
    }

    @Override
    public void fly() {
        System.out.print(name);
        flyBehavior.fly();
    }
}
